package day05.shuzu;

public class FBNQ {
    public static void main(String[] args) {
//        斐波那契  不死神兔案例
        System.out.println(getnum(8));
    }

    private static int getnum(int n) {
        if (n==1||n==2){
            return 1;
        }else {
          return   getnum(n-1)+getnum(n-2);
        }
    }
}
